<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.util.collection.model.GuardIterator</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.util.collection.model.GuardIterator";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.util.collection.model.GuardIterator.html" class="symbol">tango.util.collection.model.GuardIterator</a></h1>
  
<dl>
<dt class="decl">interface <a class="symbol _interface" name="GuardIterator" href="./htmlsrc/tango.util.collection.model.GuardIterator.html#L31" kind="interface" beg="31" end="66">GuardIterator</a><span class="tparams">(V)</span> : Iterator!(V); <a title="Permalink to this symbol" href="#GuardIterator" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.GuardIterator.html#L31">#</a></dt>
<dd class="ddef">
<div class="summary">CollectionIterator extends the standard
 tango.util.collection.model.Iterator interface with two additional methods.</div>
<p class="sec_header">Author:</p>Doug Lea
 @version 0.93
<p class="bl"/>
 <P> For an introduction to this package see <A HREF="index.html"> Overview </A>.
<dl>
<dt class="decl">bool <a class="symbol _function" name="GuardIterator.corrupted" href="./htmlsrc/tango.util.collection.model.GuardIterator.html#L43" kind="function" beg="43" end="43">corrupted</a><span class="params">()</span>; <span class="attrs">[<span class="prot">public</span>]</span> <a title="Permalink to this symbol" href="#GuardIterator.corrupted" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.GuardIterator.html#L43">#</a></dt>
<dd class="ddef">
<div class="summary">Return true if the collection that constructed this enumeration
 has been detectably modified since construction of this enumeration.
 Ability and precision of detection of this condition can vary
 across collection class implementations.
 more() is false whenever corrupted is true.</div>
<p class="sec_header">Returns:</p>true if detectably corrupted.</dd>
<dt class="decl">uint <a class="symbol _function" name="GuardIterator.remaining" href="./htmlsrc/tango.util.collection.model.GuardIterator.html#L65" kind="function" beg="65" end="65">remaining</a><span class="params">()</span>; <span class="attrs">[<span class="prot">public</span>]</span> <a title="Permalink to this symbol" href="#GuardIterator.remaining" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.GuardIterator.html#L65">#</a></dt>
<dd class="ddef">
<div class="summary">Return the number of elements in the enumeration that have
 not yet been traversed. When corrupted() is true, this 
 number may (or may not) be greater than zero even if more() 
 is false. Exception recovery mechanics may be able to
 use this as an indication that recovery of some sort is
 warranted. However, it is not necessarily a foolproof indication.
 <P>
 You can also use it to pack enumerations into arrays. For example:
 <PRE>
 Object arr[] = new Object[e.numberOfRemainingElement()]
 int i = 0;
 while (e.more()) arr[i++] = e.value();
 </PRE>
 <P>
 For the converse case,</div>
<p class="sec_header">See Also:</p>tango.util.collection.iterator.ArrayIterator.ArrayIterator
<p class="sec_header">Returns:</p>the number of untraversed elements</dd></dl></dd></dl>
</div>
<div id="footer">
  <p></p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:09 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>